home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / euphor12 / demo.doc < prev    next >
Text File  |  1994-04-19  |  5KB  |  110 lines

  1.  
  2.         DEMO Programs Written in Euphoria
  3.         ---------------------------------
  4.  
  5.  This directory contains a number of example programs written in Euphoria.
  6.  These programs are being contributed to the Public Domain by 
  7.  Rapid Deployment Software. You are encouraged to modify and redistribute
  8.  any of these programs. These programs are not the best that you can do in 
  9.  Euphoria. They are intended merely as examples to aid your understanding of
  10.  how the language works. We hope you will come up with something much better.
  11.  To run any of them type 'ex' followed by the file name. 
  12.  
  13.  If you are in Windows, and you have associated .ex files with ex.exe, you 
  14.  can simply double-click to run any .ex file. A few of the simpler
  15.  programs expect to be run from the command line and they will terminate
  16.  immediately after displaying something.
  17.  
  18.  You can view and modify these programs using any editor, but we recommend 
  19.  using the Euphoria editor, ed, so you can get color syntax highlighting. 
  20.  
  21.  -----------------------------------------------------------------------------
  22.  Note: If you have trouble running any of the graphics oriented programs, try
  23.  changing the line that says: 
  24.     constant GRAPHICS_MODE = 261  -- SVGA
  25.  to: 
  26.     constant GRAPHICS_MODE = 18   -- VGA
  27.  This will provide VGA resolution, and is less likely to cause problems.
  28.  See include\graphics.e for other possible graphics modes.
  29.  -----------------------------------------------------------------------------
  30.  
  31.  NAME      DESCRIPTION
  32.  ----      -----------
  33.  
  34.  allsorts.ex - comparison of different sorting algorithms
  35.           - which is the fastest sorting algorithm in Euphoria?
  36.  
  37.  animal.ex - guess the animal game
  38.        - let the computer guess which animal you are thinking of
  39.        - it learns about animals as you play
  40.  
  41.  buzz.ex   - "buzzword" generator - Try adding your own phrases.
  42.  
  43.  callmach.ex - an example of calling machine code from Euphoria
  44.  
  45.  dice.ex   - rolls dice and displays results as a bar graph
  46.  
  47.  example.ex   - example merge_sort program from the reference manual
  48.  ex.pro       - ex.pro is created when you run example.ex. It contains 
  49.             the profile output for example.ex.
  50.  
  51.  mouse.ex  - simple demo of get_mouse() built-in function
  52.        - you need DOS mouse support for this
  53.  
  54.  mset.ex   - Mandelbrot Set (fractal) generator
  55.        - Press Enter to stop the display and change all the colors
  56.            - Press Enter again to choose a region of the M-set to zoom in on
  57.        - use the arrow keys to select a box to enlarge, or type 'q'
  58.          to quit
  59.        - your picture is saved in a file
  60.  
  61.  mydata.ex - a simple database program 
  62.  
  63.  plot3d.ex - 3-D surface plotting of functions 
  64.        - add in your own function of x and y, and see it plotted
  65.        - Press Enter to move on to the next sample function
  66.  
  67.  polygon.ex - displays interesting polygon patterns
  68.         - hit space bar to see a new pattern
  69.  
  70.  queens.ex - solves the N queens problem - how to place N queens on an NxN
  71.          chess board so they do not attack each other (N = 8 for a
  72.          standard board). 
  73.  
  74.  sanity.ex - this program tests hundreds of features of Euphoria, in a quick,
  75.          self-test. If this program reports "PASSED" then Euphoria is
  76.          working on your machine. If not, there may be something wrong.
  77.  
  78.  sb.ex  - bouncing balls screen blank program 
  79.  
  80.  simple.ex - compiled "with trace" so you can see a program execute
  81.          by hitting Enter for each statement. Just Press down on
  82.          the Enter key.
  83.  
  84.  ttt.ex  - 3-dimensional tic tac toe
  85.          - try to get 4 in a row, on any plane or 1 per plane
  86.          - play against "DEFENDO" or "AGGRESSO" or a human, or
  87.        watch the AGGRESSO and DEFENDO algorithms slug it out
  88.      - you need DOS mouse support for this
  89.  
  90.  wire.ex - 3-D wire frame demo of the big 'E' in Euphoria
  91.      - hit space bar to freeze/restart the display
  92.      - Enter to quit
  93.  
  94.  bench directory   - contains benchmark programs for comparing Euphoria
  95.              against QBasic. Don't take our word for it! - see
  96.              how fast Euphoria is on your machine
  97.  
  98.  langwar directory - contains a real-time star wars type game
  99.            - read lw.doc, ex lw
  100.  
  101.  learn directory   - learn.ex - quizzes you on your knowledge of Euphoria
  102.                  gives you some programming exercises and checks them for 
  103.                  correctness
  104.  
  105. --------------------------------------------------------------------
  106. -- See the .ex files themselves for more details.
  107. -- You can view them with:   ed filename.ex
  108. --------------------------------------------------------------------
  109.  
  110.